﻿using Autofac;
using uMVP.Dialog;

namespace uMVP
{
    public class MvpModule : Module
    {
        protected override void Load(ContainerBuilder builder)
        {
            builder.RegisterType<MvpManager>().As<IMvpManager>();
            builder.RegisterType<ModelMessageDialog>()
                .As<IModelMessageDialog>().SingleInstance();
            builder.RegisterType<DevelopModelMessageDialog>()
                .As<IDevelopModelMessageDialog>().SingleInstance();
        }
    }
}